package com.example.java_doc_search.seacher;

/**
 * @author liuyandeng
 * @date 2023/9/3
 * @Description
 */

// 这个类就是把文档ID和文档与词的相关性 权重 进行一个包裹
public class Weight {
    // weight 这个值越大说明“相关性”就越强，weight怎么算，后面再说
    private int weight;
    private int docId;

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getDocId() {
        return docId;
    }

    public void setDocId(int docId) {
        this.docId = docId;
    }
}
